/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trocabi;

/**
 *
 * @author philippe
 */
public class Parameters {
    public static final boolean BD_SECURE  = false;
    public static final String DB_USER     = "user";
    public static final String DB_PASSWORD = "trocabi";
    public static final String DB_PORT     = "3306";
    public static final String DB_NAME     = "trocabi";
    public static final String DB_DRIVER   = "com.mysql.jdbc.Driver";
    public static final String DB_HOST     = "192.168.49.134"; // TODO: utiliser un fichier de configuration
    public static final String DB_URL      = "jdbc:mysql://" + DB_HOST 
                                            + ":" + DB_PORT 
                                            + "/" + DB_NAME
                                            +(BD_SECURE?"?useSSL=true&requireSSL=true":"");
    
    public static final Double MARGE_NEUF  =0.15;
    public static final Double MARGE_ANCIEN=0.5;
    
    public static final String FORMAT_DATE  ="dd/MM/yy";
    public static final String FORMAT_PRICE         ="#,###.00 €";
    public static final String FORMAT_ID_DEPOSITAIRE="%010d";
    public static final String FORMAT_ID_ARTICLE    ="%010d"; // 10 MAX
    public static final String FORMAT_CP            = "00000";
    public static final String FORMAT_TEL           = "0000000000";
    public static final String FORMAT_IDCARD        = "000000000000";
}
